using System.Collections.Generic;

namespace baiduNLP
{
  public class sentimentModel
  {
    public class Items
    {
      public double positive_prob { get; set; }
      public double confidence { get; set; }
      public double negative_prob { get; set; }
      public int sentiment { get; set; }
    }

    public double p => items[0].positive_prob;
    public double c => items[0].confidence;
    public double n => items[0].negative_prob;
    public string s => items[0].sentiment == 2 ? "积极" : "消极";
    public long log_id { get; set; }
    public string text { get; set; }
    public List<Items> items { get; set; }
  }
}